# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('salers', '0028_auto_20150903_2351'),
        ('customer', '0008_auto_20150906_1645'),
    ]

    operations = [
        migrations.CreateModel(
            name='Customer',
            fields=[
                ('id', models.AutoField(primary_key=True, auto_created=True, verbose_name='ID', serialize=False)),
                ('customername', models.CharField(max_length=20, unique=True)),
                ('company', models.CharField(max_length=40)),
                ('mobile', models.IntegerField()),
                ('qq', models.IntegerField()),
                ('email', models.EmailField(max_length=254, default='')),
                ('wangwang', models.CharField(max_length=10)),
                ('gender', models.IntegerField()),
                ('createdate', models.DateTimeField()),
                ('custype', models.IntegerField(default=1)),
            ],
        ),
        migrations.CreateModel(
            name='CustomerGroup',
            fields=[
                ('id', models.AutoField(primary_key=True, auto_created=True, verbose_name='ID', serialize=False)),
                ('groupname', models.CharField(max_length=20, unique=True)),
                ('createdate', models.DateTimeField(auto_now_add=True)),
                ('ofsaleid', models.ForeignKey(to='salers.User', related_name='ofsaler')),
            ],
        ),
        migrations.CreateModel(
            name='Department',
            fields=[
                ('id', models.AutoField(primary_key=True, auto_created=True, verbose_name='ID', serialize=False)),
                ('departmentname', models.CharField(max_length=20)),
            ],
        ),
        migrations.CreateModel(
            name='Industry',
            fields=[
                ('id', models.AutoField(primary_key=True, auto_created=True, verbose_name='ID', serialize=False)),
                ('industryname', models.CharField(max_length=20)),
                ('createdate', models.DateTimeField()),
            ],
        ),
        migrations.CreateModel(
            name='Level',
            fields=[
                ('id', models.AutoField(primary_key=True, auto_created=True, verbose_name='ID', serialize=False)),
                ('levelname', models.CharField(max_length=20)),
            ],
        ),
        migrations.AddField(
            model_name='customer',
            name='groupid',
            field=models.ForeignKey(to='customer.CustomerGroup', default=True, related_name='cgroup'),
        ),
        migrations.AddField(
            model_name='customer',
            name='industry',
            field=models.ForeignKey(to='customer.Industry', related_name='industryforeign'),
        ),
        migrations.AddField(
            model_name='customer',
            name='level',
            field=models.ForeignKey(to='customer.Level', related_name='levelforeign'),
        ),
        migrations.AddField(
            model_name='customer',
            name='saler',
            field=models.ForeignKey(to='salers.User', related_name='salerforeign'),
        ),
    ]
